package com.hnu.store.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;

public class RechargeRecord extends BaseEntity{
  private Integer id;
  private Integer userId;

  private double money;
  @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")

  private Date time;
  private String transferRecordPictureUrl;

  private String filePath;

  private String fileName;

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  public double getMoney() {
    return money;
  }

  public void setMoney(double money) {
    this.money = money;
  }

  public Date getTime() {
    return time;
  }

  public void setTime(Date time) {
    this.time = time;
  }

  public String getTransferRecordPictureUrl() {
    return transferRecordPictureUrl;
  }

  public void setTransferRecordPictureUrl(String transferRecordPictureUrl) {
    this.transferRecordPictureUrl = transferRecordPictureUrl;
  }

  public String getFilePath() {
    return filePath;
  }

  public void setFilePath(String filePath) {
    this.filePath = filePath;
  }

  public String getFileName() {
    return fileName;
  }

  public void setFileName(String fileName) {
    this.fileName = fileName;
  }

  public RechargeRecord() {
  }

  public RechargeRecord(Integer id, Integer userId, double money, Date time,
      String transferRecordPictureUrl, String filePath, String fileName) {
    this.id = id;
    this.userId = userId;
    this.money = money;
    this.time = time;
    this.transferRecordPictureUrl = transferRecordPictureUrl;
    this.filePath = filePath;
    this.fileName = fileName;
  }

  @Override
  public String toString() {
    return "RechargeRecord{" +
        "id=" + id +
        ", userId=" + userId +
        ", money=" + money +
        ", time=" + time +
        ", transferRecordPictureUrl='" + transferRecordPictureUrl + '\'' +
        ", filePath='" + filePath + '\'' +
        ", fileName='" + fileName + '\'' +
        '}';
  }
}
